/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.retail.service;

import java.util.List;

import com.vivo.retail.entity.VivoRetailOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.vivo.fx.retail.entity.FxDeaRetailorder;
import com.vivo.fx.retail.dao.FxDeaRetailorderDao;

/**
 * 零售单Service
 * @author jyangye
 * @version 2017-11-17
 */
@Service
@Transactional(readOnly = true)
public class FxDeaRetailorderService extends CrudService<FxDeaRetailorderDao, VivoRetailOrder> {
    @Autowired
    private FxDeaRetailorderDao fxDeaRetailorderDao;

//	public FxDeaRetailorder get(String id) {
//		return super.get(id);
//	}
	
//	public List<FxDeaRetailorder> findList(FxDeaRetailorder fxDeaRetailorder) {
//		return super.findList(fxDeaRetailorder);
//	}

	public List<VivoRetailOrder> findOrderList(VivoRetailOrder vivoRetailOrder) {
		return fxDeaRetailorderDao.findOrderList(vivoRetailOrder);
	}

//	public Page<FxDeaRetailorder> findPage(Page<FxDeaRetailorder> page, FxDeaRetailorder fxDeaRetailorder) {
//		return super.findPage(page, fxDeaRetailorder);
//	}

	public Page<VivoRetailOrder> findPage(Page<VivoRetailOrder> page, VivoRetailOrder vivoRetailOrder) {
		return super.findPage(page, vivoRetailOrder);
	}
	
//	@Transactional(readOnly = false)
//	public void save(FxDeaRetailorder fxDeaRetailorder) {
//		super.save(fxDeaRetailorder);
//	}
//
//	@Transactional(readOnly = false)
//	public void delete(FxDeaRetailorder fxDeaRetailorder) {
//		super.delete(fxDeaRetailorder);
//	}
//
}